package cn.le.workQueues;

import org.springframework.stereotype.Component;

/**
 * 项目名  spring-boot
 * Created by lansp
 * Created at 2018/5/31
 * 描述:
 */
@Component
//@RabbitListener(queues = "workQueues")
class NeoReceiverOne {

	//@RabbitHandler
	public void process(String neo){
		System.out.println("Receiver1:" + neo);
	}
}

@Component
//@RabbitListener(queues = "workQueues")
class NeoReceiverTow {

	//@RabbitHandler
	public void process(String neo){
		System.out.println("Receiver2:" + neo);
	}
}